package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.StrategyComment;
import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.query.StrategyCommentQuery;
import org.springframework.data.domain.Page;

public interface IStrategyCommentService {
	/**
	 * 新增
	 */
	void addComment(StrategyComment strategyComment);

	/**
	 * 查询单个
	 */
	StrategyComment get(String id);

	/**
	 * 新增
	 */
	void update(StrategyComment strategyComment);

	/**
	 * 分页查询
	 */
	Page<StrategyComment> query(StrategyCommentQuery qo);

	/**
	 * 点赞
	 * @param cid
	 * @param userInfo
	 */
	void commentThumb(String cid, UserInfo userInfo);
}
